package com.telit.uav.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.telit.uav.dto.TeamDTO;
import com.telit.uav.entity.CommTeam;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CommTeamDao extends BaseMapper<CommTeam> {

    /**
     * 队伍信息
     * @param teamName
     * @return
     */
    List<TeamDTO> list(@Param("teamName") String teamName, @Param("teamType") String teamType);

    /**
     * 根据用户id查询队伍信息
     * @param userId
     * @return
     */
    CommTeam selectByUserId(@Param("userId") Long userId,@Param("teamType")String teamType);

}
